package com.ruoyi.stock.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.stock.mapper.QwStockMapper;
import com.ruoyi.stock.domain.QwStock;
import com.ruoyi.stock.service.IQwStockService;

/**
 * 股票信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-08-16
 */
@Service
public class QwStockServiceImpl implements IQwStockService 
{
    @Autowired
    private QwStockMapper qwStockMapper;

    /**
     * 查询股票信息
     * 
     * @param stockId 股票信息主键
     * @return 股票信息
     */
    @Override
    public QwStock selectQwStockByStockId(Long stockId)
    {
        return qwStockMapper.selectQwStockByStockId(stockId);
    }

    /**
     * 查询股票信息列表
     * 
     * @param qwStock 股票信息
     * @return 股票信息
     */
    @Override
    public List<QwStock> selectQwStockList(QwStock qwStock)
    {
        return qwStockMapper.selectQwStockList(qwStock);
    }

    /**
     * 新增股票信息
     * 
     * @param qwStock 股票信息
     * @return 结果
     */
    @Override
    public int insertQwStock(QwStock qwStock)
    {
        return qwStockMapper.insertQwStock(qwStock);
    }

    /**
     * 修改股票信息
     * 
     * @param qwStock 股票信息
     * @return 结果
     */
    @Override
    public int updateQwStock(QwStock qwStock)
    {
        return qwStockMapper.updateQwStock(qwStock);
    }

    /**
     * 批量删除股票信息
     * 
     * @param stockIds 需要删除的股票信息主键
     * @return 结果
     */
    @Override
    public int deleteQwStockByStockIds(Long[] stockIds)
    {
        return qwStockMapper.deleteQwStockByStockIds(stockIds);
    }

    /**
     * 删除股票信息信息
     * 
     * @param stockId 股票信息主键
     * @return 结果
     */
    @Override
    public int deleteQwStockByStockId(Long stockId)
    {
        return qwStockMapper.deleteQwStockByStockId(stockId);
    }
}
